import { lazy } from 'react';

const Home = lazy( () => import( 'src/pages/Home' ) );
const EditReport = lazy( () => import( 'src/pages/AnalyseManage/EditReport' ) );
const Drafts = lazy( () => import( 'src/pages/AnalyseManage/Drafts' ) );
const FolderManage = lazy( () => import( 'src/pages/AnalyseManage/FolderManage' ) );
const NewReport = lazy( () => import( 'src/pages/AnalyseManage/NewReport' ) );
const PredefinedReport = lazy( () => import( 'src/pages/AnalyseManage/PredefinedReport' ) );
const MyAnalysis = lazy( () => import( 'src/pages/AnalyseManage/MyAnalysis' ) );
const GraphicIndicatorLibrary = lazy( () => import( 'src/pages/AnalyseManage/GraphicIndicatorLibrary' ) );
const PublicReport = lazy( () => import( 'src/pages/AnalyseManage/PublicReport' ) );


export default [
	{
		title: '首页',
		path: '/',
		key: 'home',
		exact: true,
		component: Home
	},
	{
		title: '我的分析',
		path: '/analyseManage/myAnalysis',
		key: 'myAnalysis',
		exact: true,
		component: MyAnalysis
	},
	{
		title: '德勤方案',
		path: '/analyseManage/predefinedReport/:id',
		key: 'predefinedReport',
		exact: true,
		component: PredefinedReport
	},
	{
		title: '文件夹管理',
		path: '/analyseManage/folderManage',
		key: 'folderManage',
		exact: true,
		component: FolderManage
	},
	{
		title: '新建报表',
		path: '/analyseManage/newReport',
		key: 'newReport',
		exact: true,
		component: NewReport
	},
	{
		title: '编辑报表',
		path: '/analyseManage/:openType/:id/:isEdit/:editType',
		key: 'openReport',
		exact: true,
		component: EditReport
	},
	{
		title: '草稿箱',
		path: '/analyseManage/drafts',
		key: 'drafts',
		exact: true,
		component: Drafts
	},
	{
		title: '图形指标库',
		path: '/analyseManage/graphicIndicatorLibrary',
		key: 'drafts',
		exact: true,
		component: GraphicIndicatorLibrary
	},
	/**
	 *  share 分享（需要登录）
	 *  @publicType    publicReport 公开报表/截图      subscribe 订阅
	 */
	{
		title: '分享报表',
		path: '/analyseManage/share/:publicType/:code',
		key: 'publicReport',
		exact: true,
		component: PublicReport
	}
];
